package com.trans.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

public interface AccountDao {

    //转入
    @Update("update t_account set money = money + ${money} where name = #{name}")
    void addMoney(@Param("name") String name, @Param("money") Double money);

    //转出
    @Update("update t_account set money = money - ${money} where name = #{name}")
    void minusMoney(@Param("name") String name, @Param("money") Double money);

}
